import request from 'src/utils/request'
// 查询违约车辆信息
export function fetchUploadfile(param) {
  console.info(param)
  const file = new FormData() // 创建form对象
  param.filter(item => {
    file.append('file', item, item.name) // 通过append向form对象添加数据
  })
  return request.post('/api/crs-app/drivingAppointment/uploadfile/', param)
}

// 新增违约记录
export function fetchCreate(param) {
  return request.post('/api/crs/serviceass/complaint/createDefault', param)
}
